<!--src/main/resources/templates/articletype/edit.html-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>编辑文章类型</title>
    <link rel="stylesheet" type="text/css" th:href="@{/css/editstyles.css}">
</head>
<body>

<h2>编辑文章类型</h2>

<form th:action="@{/articletype/saveEdit}" th:object="${articletype}" method="post">
    <input type="hidden" name="id" th:value="${articletype.id}" />
    <label for="type">文章类型:</label>
    <input type="text" id="type" name="type" th:value="${articletype.type}" />
    <br/>
    <button type="submit">保存</button>
    <a th:href="@{/articletype/cancelEdit}" class="cancel-btn">取消</a>
</form>

</body>
</html>
